home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / crack_4.1-tar / Scripts / guess2fbk < prev    next >
Encoding:
Text File  |  1992-06-25  |  859 b   |  38 lines

  1. #!/bin/sh
  2.  
  3. ###
  4. # This program is copyright Alec Muffett 1991, and is provided as part of
  5. # the Crack v4.0 Password Cracking package.  The author disclaims all
  6. # responsibility or liability with respect to it's usage or its effect
  7. # upon hardware or computer systems, and maintains copyright as set out in
  8. # the "LICENCE" document which accompanies distributions of Crack v4.0 and
  9. # upwards. So there...
  10. ###
  11.  
  12. ###
  13. # guess2fbk : generates a 'feedback' file on stdout from output format
  14. # data.  On occasions when emergency construction is useful.
  15. ###
  16.  
  17. if [ $# = 0 ]
  18. then
  19.     echo "Usage:    $0 outputfile [...]"
  20.     exit 1
  21. fi
  22.  
  23. ###
  24. # Had to modify this awk script now that passwords are turning up with spaces
  25. ###
  26.  
  27. cat $* |
  28. awk '
  29. /Guessed/{
  30.     start = index($0, "[");
  31.     stop = index($0, "]");
  32.     print "!fb!:" $NF ":Y:" substr($0, start+1, stop - start - 1)
  33. }
  34. ' |
  35. sort |
  36. uniq
  37.  
  38.